const userController = require('./controller/user');
const tableController = require('./controller/table');
module.exports = (router) => {
  router.prefix('/api');
  router
    .get('/profile', userController.profile)
    .post('/login', userController.login)
    .post('/register', userController.register)
    .post('/logout', userController.logout)
    .post('/tableData', tableController.TableDataFilter)
    .post('/getDevice', tableController.getDeviceTypeName)
    .post('/updateData', tableController.updateData)
    .post('/delData', tableController.delData)
    .post('/getPie', tableController.getPie)
};
